//
//  KDNotificationController.m
//  WangJingApp
//
//  Created by 魏强 on 17/1/23.
//  Copyright © 2017年 KDTech. All rights reserved.
//

#import "KDNotificationController.h"
#import "KDOutboxController.h"
#import "KDInboxController.h"
#import "KDPostNotyController.h"
@interface KDNotificationController ()

@end

@implementation KDNotificationController
#pragma mark - 懒加载区

#pragma mark - 生命周期区
- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = BackGroundColor;
    [self setupAllChildViewController];
    [self setupNavbar];
}
#pragma mark - 板块布置区
- (void)setupNavbar{
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"right_email"] style:UIBarButtonItemStylePlain target:self action:@selector(rightItemClick)];
}
#pragma mark - 添加所有子控制器
- (void)setupAllChildViewController
{
    // 管理日历
    KDInboxController *vc1 = [[KDInboxController alloc] init];
    vc1.title = @"收件箱";
    vc1.type = @"0";
    [self addChildViewController:vc1];
    
    // 信息报送
    KDInboxController *vc2 = [[KDInboxController alloc] init];
    vc2.title = @"发件箱";
    vc2.type = @"1";
    [self addChildViewController:vc2];
    
    //    // 在控专题
    //    KDTopicController *vc5 = [[KDTopicController alloc] init];
    //    vc5.title = @"在控专题";
    //    [self addChildViewController:vc5];
    
    [super setupManageBtn];
}
#pragma mark - 事件点击区
- (void)rightItemClick{
    KDPostNotyController *notyPost = [[KDPostNotyController alloc]init];
    [self.navigationController pushViewController:notyPost animated:YES];
}
#pragma mark - 网络请求区

#pragma mark - 通知接收区


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
